package com.xxl.job.consume.service;

import com.xxl.job.consume.model.DeviceDefModel;
import com.xxl.job.consume.repository.DeviceDefRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 查询设备信息
 */
@Service
public class DeviceInfoService {

    @Autowired
    private DeviceDefRepository deviceDefRepository;

    /**
     * 查询设备
     * @param devCode
     * @return
     */
    public DeviceDefModel queryDevice(String devCode){
        return deviceDefRepository.query(devCode);
    }


}
